package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 数据库通用操作实体类（普通增删改查）
 */
@TableName("discussshangpinxinxi")
public class DiscussshangpinxinxiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public DiscussshangpinxinxiEntity() {
		
	}
	
	public DiscussshangpinxinxiEntity(T t) {
		BeanUtils.copyProperties(this, t);
	}

	@TableId
	private Long id;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	
	    private String nickname;
	    public void setNickname(String nickname) {
		    this.nickname = nickname;
	    }
	    public String getNickname() {
		    return nickname;
	    }
        
	    private String content;
	    public void setContent(String content) {
		    this.content = content;
	    }
	    public String getContent() {
		    return content;
	    }
        
	    private String reply;
	    public void setReply(String reply) {
		    this.reply = reply;
	    }
	    public String getReply() {
		    return reply;
	    }

		private String refid;

	public String getRefid() {
		return refid;
	}

	public void setRefid(String refid) {
		this.refid = refid;
	}

	private String userid;

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
}

